package com.modle;

import java.io.Serializable;
import java.util.ArrayList;

public class User implements Serializable {
	/**
	 * 
	 */
	public static final String MALE_M = "m";// 男
	public static final String MALE_F = "f";// 女
	public static final String U_TYPE_YR = "artist";// 艺人
	public static final String U_TYPE_ORG = "organization";// 机构
	
	private static final long serialVersionUID = 7877071036075160997L;
	public String id;
	public String code;
	public String clientInd;
	public String iyrNum;// I艺人号
	public String mobile;
	public String name;
	public String _user_resume;
	public String nickName;
	public String firstWord;// 名字的首字母
	public String type;// aritst艺人
	public boolean isMember=false;// 是否会员
	public String expireTime;//过期时间
	public String thumb = "";
	public String male;
	public String signature;// 签名
	public String recetime;// 最新联系的时间
	public String place = "";
	public String masterSkill;//主要技能
	

	
	/*********专门用于未读消息的处理Start******************************************/
	
	public String msgTotalNum = "1";
	public boolean isRead=false;
	public String msgType;
	public String msgContent;
	
	
	/*********专门用于未读消息的处理End******************************************/
	
	
	
	

	/*** 权限START ***/
	public boolean pCanSearch=false;//是否可被搜索
	public boolean pFriVerifaciton=false;//加好友需要验证
	public boolean pAlbumViewAll=false;//相册所有人可见
	public boolean pAlbumViewFriend=false;//相册朋友可见
	public boolean pAlbumViewOrg=false;//相册机构可见
	public boolean pVideoViewAll=false;
	public boolean pVideoViewFriend=false;
	public boolean pVideoViewOrg=false;
	public boolean pResumeViewAll=false;
	public boolean pResumeViewFriend=false;
	public boolean pResumeViewOrg=false;
	
	
	private String system_num;//": 236678,
//	private String mobile;//": "13666135719",
//	private String signature;//": "你妹啊",
	private String nickname;//": "酱油",
	private String first_word;//": "J",
	private String sex; //": "m",
	private String account_type;//": "artist",
	private String is_member;//": false,
	private String avatar;//": "/uploads/cache/thumbnail/uploads/2014-11/54618b01e6e52.png",
	private String friend_verification;//": false,
	private String search_able;//": true,
	private String albums_view_all;//": true,
	private String albums_view_friend;//": true,
	private String albums_view_organization;//": true,
	private String video_view_all;//": true,
	private String video_view_friend;//": true,
	private String video_view_organization;//": true,
	private String resume_view_all;//": true,
	private String resume_view_friend;//": true,
	private String resume_view_organization;//": true,
	//": {
	 

	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getClientInd() {
		return clientInd;
	}


	public void setClientInd(String clientInd) {
		this.clientInd = clientInd;
	}


	public String getIyrNum() {
		return iyrNum;
	}


	public void setIyrNum(String iyrNum) {
		this.iyrNum = iyrNum;
	}


	public String getMobile() {
		return mobile;
	}


	public void setMobile(String mobile) {
		this.mobile = mobile;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getNickName() {
		return nickName;
	}


	public void setNickName(String nickName) {
		this.nickName = nickName;
	}


	public String getFirstWord() {
		return firstWord;
	}


	public void setFirstWord(String firstWord) {
		this.firstWord = firstWord;
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}


	public boolean isMember() {
		return isMember;
	}


	public void setMember(boolean isMember) {
		this.isMember = isMember;
	}


	public String getExpireTime() {
		return expireTime;
	}


	public void setExpireTime(String expireTime) {
		this.expireTime = expireTime;
	}


	public String getThumb() {
		return thumb;
	}


	public void setThumb(String thumb) {
		this.thumb = thumb;
	}


	public String getMale() {
		return male;
	}


	public void setMale(String male) {
		this.male = male;
	}


	public String getSignature() {
		return signature;
	}


	public void setSignature(String signature) {
		this.signature = signature;
	}


	public String getRecetime() {
		return recetime;
	}


	public void setRecetime(String recetime) {
		this.recetime = recetime;
	}


	public String getPlace() {
		return place;
	}


	public void setPlace(String place) {
		this.place = place;
	}


	public String getMasterSkill() {
		return masterSkill;
	}


	public void setMasterSkill(String masterSkill) {
		this.masterSkill = masterSkill;
	}


	public String getMsgTotalNum() {
		return msgTotalNum;
	}


	public void setMsgTotalNum(String msgTotalNum) {
		this.msgTotalNum = msgTotalNum;
	}


	public boolean isRead() {
		return isRead;
	}


	public void setRead(boolean isRead) {
		this.isRead = isRead;
	}


	public String getMsgType() {
		return msgType;
	}


	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}


	public String getMsgContent() {
		return msgContent;
	}


	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}


	public boolean ispCanSearch() {
		return pCanSearch;
	}


	public void setpCanSearch(boolean pCanSearch) {
		this.pCanSearch = pCanSearch;
	}


	public boolean ispFriVerifaciton() {
		return pFriVerifaciton;
	}


	public void setpFriVerifaciton(boolean pFriVerifaciton) {
		this.pFriVerifaciton = pFriVerifaciton;
	}


	public boolean ispAlbumViewAll() {
		return pAlbumViewAll;
	}


	public void setpAlbumViewAll(boolean pAlbumViewAll) {
		this.pAlbumViewAll = pAlbumViewAll;
	}


	public boolean ispAlbumViewFriend() {
		return pAlbumViewFriend;
	}


	public void setpAlbumViewFriend(boolean pAlbumViewFriend) {
		this.pAlbumViewFriend = pAlbumViewFriend;
	}


	public boolean ispAlbumViewOrg() {
		return pAlbumViewOrg;
	}


	public void setpAlbumViewOrg(boolean pAlbumViewOrg) {
		this.pAlbumViewOrg = pAlbumViewOrg;
	}


	public boolean ispVideoViewAll() {
		return pVideoViewAll;
	}


	public void setpVideoViewAll(boolean pVideoViewAll) {
		this.pVideoViewAll = pVideoViewAll;
	}


	public boolean ispVideoViewFriend() {
		return pVideoViewFriend;
	}


	public void setpVideoViewFriend(boolean pVideoViewFriend) {
		this.pVideoViewFriend = pVideoViewFriend;
	}


	public boolean ispVideoViewOrg() {
		return pVideoViewOrg;
	}


	public void setpVideoViewOrg(boolean pVideoViewOrg) {
		this.pVideoViewOrg = pVideoViewOrg;
	}


	public boolean ispResumeViewAll() {
		return pResumeViewAll;
	}


	public void setpResumeViewAll(boolean pResumeViewAll) {
		this.pResumeViewAll = pResumeViewAll;
	}


	public boolean ispResumeViewFriend() {
		return pResumeViewFriend;
	}


	public void setpResumeViewFriend(boolean pResumeViewFriend) {
		this.pResumeViewFriend = pResumeViewFriend;
	}


	public boolean ispResumeViewOrg() {
		return pResumeViewOrg;
	}


	public void setpResumeViewOrg(boolean pResumeViewOrg) {
		this.pResumeViewOrg = pResumeViewOrg;
	}


	public String getSystem_num() {
		return system_num;
	}


	public void setSystem_num(String system_num) {
		this.system_num = system_num;
	}


	public String getNickname() {
		return nickname;
	}


	public void setNickname(String nickname) {
		this.nickname = nickname;
	}


	public String getFirst_word() {
		return first_word;
	}


	public void setFirst_word(String first_word) {
		this.first_word = first_word;
	}


	public String getSex() {
		return sex;
	}


	public void setSex(String sex) {
		this.sex = sex;
	}


	public String getAccount_type() {
		return account_type;
	}


	public void setAccount_type(String account_type) {
		this.account_type = account_type;
	}


	public String getIs_member() {
		return is_member;
	}


	public void setIs_member(String is_member) {
		this.is_member = is_member;
	}


	public String getAvatar() {
		return avatar;
	}


	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}


	public String getFriend_verification() {
		return friend_verification;
	}


	public void setFriend_verification(String friend_verification) {
		this.friend_verification = friend_verification;
	}


	public String getSearch_able() {
		return search_able;
	}


	public void setSearch_able(String search_able) {
		this.search_able = search_able;
	}


	public String getAlbums_view_all() {
		return albums_view_all;
	}


	public void setAlbums_view_all(String albums_view_all) {
		this.albums_view_all = albums_view_all;
	}


	public String getAlbums_view_friend() {
		return albums_view_friend;
	}


	public void setAlbums_view_friend(String albums_view_friend) {
		this.albums_view_friend = albums_view_friend;
	}


	public String getAlbums_view_organization() {
		return albums_view_organization;
	}


	public void setAlbums_view_organization(String albums_view_organization) {
		this.albums_view_organization = albums_view_organization;
	}


	public String getVideo_view_all() {
		return video_view_all;
	}


	public void setVideo_view_all(String video_view_all) {
		this.video_view_all = video_view_all;
	}


	public String getVideo_view_friend() {
		return video_view_friend;
	}


	public void setVideo_view_friend(String video_view_friend) {
		this.video_view_friend = video_view_friend;
	}


	public String getVideo_view_organization() {
		return video_view_organization;
	}


	public void setVideo_view_organization(String video_view_organization) {
		this.video_view_organization = video_view_organization;
	}


	public String getResume_view_all() {
		return resume_view_all;
	}


	public void setResume_view_all(String resume_view_all) {
		this.resume_view_all = resume_view_all;
	}


	public String getResume_view_friend() {
		return resume_view_friend;
	}


	public void setResume_view_friend(String resume_view_friend) {
		this.resume_view_friend = resume_view_friend;
	}


	public String getResume_view_organization() {
		return resume_view_organization;
	}


	public void setResume_view_organization(String resume_view_organization) {
		this.resume_view_organization = resume_view_organization;
	}



	


	public UserOrgInfo getOrgInfo() {
		return orgInfo;
	}


	public void setOrgInfo(UserOrgInfo orgInfo) {
		this.orgInfo = orgInfo;
	}


	public ArrayList<UserSkill> getSkillList() {
		return skillList;
	}


	public void setSkillList(ArrayList<UserSkill> skillList) {
		this.skillList = skillList;
	}


	public ArrayList<UserAlbum> getAlbumList() {
		return albumList;
	}


	public void setAlbumList(ArrayList<UserAlbum> albumList) {
		this.albumList = albumList;
	}


	public ArrayList<UserVideo> getVideoList() {
		return videoList;
	}


	public void setVideoList(ArrayList<UserVideo> videoList) {
		this.videoList = videoList;
	}


	public ArrayList<JobStruct> getPublishJobList() {
		return publishJobList;
	}


	public void setPublishJobList(ArrayList<JobStruct> publishJobList) {
		this.publishJobList = publishJobList;
	}


	public static String getMaleM() {
		return MALE_M;
	}


	public static String getMaleF() {
		return MALE_F;
	}


	public static String getuTypeYr() {
		return U_TYPE_YR;
	}


	public static String getuTypeOrg() {
		return U_TYPE_ORG;
	}


	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	/*** 权限END ***/

	private UserResume resume;// 简历
	
	public UserOrgInfo orgInfo;//机构信息

	public ArrayList<UserSkill> skillList;//技能
	public ArrayList<UserAlbum> albumList;//相册
	public ArrayList<UserVideo> videoList;//视频
	public ArrayList<JobStruct> publishJobList;//已发布的
	
	
	public UserResume getResume() {
		return resume;
	}


	public void setResume(UserResume resume) {
		if(null!=resume){
			this.name=resume.name;
		}
		this.resume = resume;
	}


	@Override
	public String toString() {
		return "User [id=" + id + ", iyrNum=" + iyrNum + ", mobile=" + mobile
				+ ", nickName=" + nickName + ", firstWord=" + firstWord
				+ ", type=" + type + ", isMember=" + isMember + ", thumb="
				+ thumb + ", male=" + male + ", signature=" + signature
				+ ", recetime=" + recetime + ", place=" + place + "]";
	}

}
